package com.dl.study.module.swagger;//package com.dl.study.base.config.swagger;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import springfox.documentation.builders.ApiInfoBuilder;
//import springfox.documentation.builders.PathSelectors;
//import springfox.documentation.builders.RequestHandlerSelectors;
//import springfox.documentation.service.ApiInfo;
//import springfox.documentation.service.Contact;
//import springfox.documentation.spi.DocumentationType;
//import springfox.documentation.spring.web.plugins.Docket;
//import springfox.documentation.swagger2.annotations.EnableSwagger2;
//
///**
// * @Author: user
// * @Date: 2021/9/14 15:13
// * @Description:
// */
////@Configuration
////@EnableSwagger2
//public class SwaggerConfig {
//    @Bean
//    public Docket createRestApi(){
//        ApiInfo apiInfo=new ApiInfoBuilder()
//                .title("接口文档")
//                .description("项目名称swagger RESTful APIs......")
//                .version("v1.0")
//                .contact(new Contact("DL","","2572021424@qq.com"))
//                .license("The Apache License")
//                .licenseUrl("")
//                .build();
//        return  new Docket(DocumentationType.SWAGGER_2)
//                .pathMapping("/")
//                .select()
//                //扫描指定的controller
//                .apis(RequestHandlerSelectors.basePackage("com.dl.study.module"))
//                .paths(PathSelectors.any())
//                .build()
//                .apiInfo(apiInfo);
//    }
//}
